const judgment = (res) => {
  if (res.code == 401) {
    uni.showModal({
      title: '提示',
      content: '登陆已过期，请重新登录',
      showCancel: false,
      success: () => {
        uni.clearStorageSync()
        uni.reLaunch({
          url: '/pages/index/login'
        })
      }
    })
  }
  if (res.code == 500) {
    uni.showModal({
      title: '错误提示',
      content: res.msg || '未知错误',
      showCancel: false,

    })
  }

}
export default judgment